const { defineConfig } = require("@vue/cli-service");

const isDevelopment = process.env.NODE_ENV === 'development' // 判断是否是生产环境

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    open: false,
    port: 3001,
    headers: {
      'Access-Control-Allow-Origin': '*'
    },

  },
  configureWebpack: {
    output: {
      library: `cso-[name]`,
      libraryTarget: 'umd', // 把微应用打包成 umd 库格式
      chunkLoadingGlobal: `cso_umd_app`
    }
  },
});
